package com.javaee.term.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.javaee.term.Enums.ContactStatusEnum;
import com.javaee.term.Enums.FinshStatusEnum;
import com.javaee.term.Enums.PrintStatusEnum;
import com.javaee.term.utils.EnumUtil;
import lombok.Data;
import java.math.BigDecimal;

/**
 * author 陈伯瑞
 * date 2019/12/16 0016 19:21
 * version 1.0
 **/
@Data
public class ProductDto {

    private String productId;
    private String productName;
    private BigDecimal productPrice;
    private Integer number;
    private  BigDecimal productamount;
    private  Integer  printstatus;
    //发货单缺少的对应商品数量
    private  Integer notout;
    @JsonIgnore
    public PrintStatusEnum getProcuctStatusEnum(){
        return EnumUtil.getByCode(printstatus, PrintStatusEnum.class);
    }

}
